package broker_manager;

import java.net.MalformedURLException;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.rmi.RemoteException;

public class BrokerManagerLauncher {

	public static void main(String[] args) throws RemoteException,
			MalformedURLException, UnknownHostException, SocketException {
		if (args.length < 1) {
			System.out
					.println("Usage: brokerlauncher <network_interface_name>");
			System.out
					.println(" <network_interface_name> the name of the network interface to use (run ifconfig to view possible choices)");
			return;
		} else if (args.length > 1) {
			System.out
					.println("Too many arguments. Run without parameters to view usage info.");
			return;
		}
		BrokerManagerImpl bm = new BrokerManagerImpl();
		bm.start(args[0]);
	}

}
